<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}

<div class="x-nav">
	<span class="layui-breadcrumb">
		<a>首页</a>
		<a>后台管理员</a>
		<a>添加管理员</a>
	</span>
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
		<i class="layui-icon" style="line-height:30px">ဂ</i>
	</a>
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin:3px 5px 0 0;float:right" href="?m={$m}&c={$c}" title="返回">
		<i class="layui-icon" style="line-height:30px">&lt;</i>
	</a>
</div>

<div class="x-body">
	<div class="layui-main">
		<form class="layui-form ajaxform" action="?">
			<input type="hidden" name="m" value="{$m}" />
			<input type="hidden" name="c" value="{$c}" />
			<input type="hidden" name="a" value="{$a}" />
			<input type="hidden" name="id" value="{$id}" />
			<div class="layui-form-item">
				<label class="layui-form-label">角色：</label>
				<div class="layui-input-inline">
					<select name="data[gid]">
						{loop $group as $key => $val}
						<option value="{$key}"{if $data['gid'] == $key} selected="selected"{/if}>{$val}</option>
						{/loop}
					</select>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">会员名：</label>
				<div class="layui-input-inline"><input type="text" name="data[username]" required="true" value="{$data['username']}" placeholder="请输入会员名称" autocomplete="off" class="layui-input"></div>
				<div class="layui-form-mid layui-word-aux"></div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">密码：</label>
				<div class="layui-input-inline"><input type="text" name="data[password]" placeholder="不修改请留空" autocomplete="off" class="layui-input"></div>
				<div class="layui-form-mid layui-word-aux"></div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">姓名：</label>
				<div class="layui-input-inline"><input type="text" name="data[truename]" value="{$data['truename']}" autocomplete="off" class="layui-input"></div>
				<div class="layui-form-mid layui-word-aux"></div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">电话：</label>
				<div class="layui-input-inline"><input type="text" name="data[tel]" value="{$data['tel']}" autocomplete="off" class="layui-input"></div>
				<div class="layui-form-mid layui-word-aux"></div>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-block"><button class="layui-btn" type="submit">确定</button></div>
			</div>
		</form>
	</div>
</div>

{template index/footer}